package com.mbyte.easy.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mbyte.easy.admin.entity.Allot;
import com.mbyte.easy.admin.entity.Draft;
import com.mbyte.easy.admin.entity.Ppt;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lp
 * @since 2019-12-12
 */
public interface IAllotService extends IService<Allot> {

    /**
     * @Author 张雪
     * @Description 根据用户名查ID
     **/
    Long selectUserIdByUsername(String username);



    Ppt selectIdByDraftId(Long id);

    /**
     * 稿件校对组长分配稿件首页
     * @Author myr
     * @param allot
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage draftCheckLeaderIndex(Draft allot, Integer pageNo, Integer pageSize,String createTimeSpace);

    /**
     * @Author 张雪
     * @Description //校对组长已分配
     * @Date 2020/3/19 21:03
     * @Param
     * @return
     **/
    IPage<Draft> draftCheckLeaderIndexTow(Page<Draft> page,Draft allot, String createTimeSpace);


    /**
     * @Description 稿件校对组长审核首页
     * @param allot
     * @param pageNo
     * @param pageSize
     * @Author myr
     * @return
     **/
    IPage leaderCheckIndex(Draft allot, Integer pageNo, Integer pageSize);



}
